export const mutationsMsg = (state, payload) => {
  state.msg = payload.msg;
}

export const setToken=(state, data) => {
            localStorage.token = data;
            state.token = data;
}

export const removeToken=(state) => {
            localStorage.removeItem('token');
            state.token = null
}

export const setUser=(state,puserInfo) => {
            localStorage.userInfo = puserInfo;
            state.userInfo = puserInfo
}